home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Defeat password by C
- Date: 19 Apr 1996 11:29:46 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4l8m2qINNi33@keats.ugrad.cs.ubc.ca>
- References: <4l4cns$gs0@usenetp1.news.prodigy.com> <4l4n57INNb5g@keats.ugrad.cs.ubc.ca> <4l8832$9jb@abel.cc.sunysb.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4l8832$9jb@abel.cc.sunysb.edu>,
- DK <dkat@psych1.psy.sunysb.edu> wrote:
- >>main()
- >>{
- >> char pass[] = "mylamepassword";
- >
- >> pass[8] = 0;
-
- >/* do you mean pass[8] = '\0'; ? if so why? if not what does this
-
- No, I meant pass[8] = 0, which does the same thing.
-
- It breaks the password in two.
-
- You need to learn about integral promotion, K&R2, Appendix A, 6.1.
-